package com.gm.wholesale.module.order.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;


public class CreateOrderBean implements Serializable {

    @SerializedName("customerName")
    private String customerName;
    @SerializedName("details")
    private List<DetailsDTO> details;
    @SerializedName("paidAmount")
    private String paidAmount;
    @SerializedName("discountAmount")
    private String discountAmount;

    @SerializedName("version")
    private Long version;


    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public static class DetailsDTO {
        @SerializedName("name")
        private String name;
        @SerializedName("unitPrice")
        private String unitPrice;
        @SerializedName("remark")
        private String remark;
        @SerializedName("outgoingUnit")
        private String outgoingUnit;
        @SerializedName("outgoingQuantity")
        private String outgoingQuantity;

        @SerializedName("orderLineId")
        private long orderLineId;

        public long getOrderLineId() {
            return orderLineId;
        }

        public void setOrderLineId(long orderLineId) {
            this.orderLineId = orderLineId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUnitPrice() {
            return unitPrice;
        }

        public void setUnitPrice(String unitPrice) {
            this.unitPrice = unitPrice;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getOutgoingUnit() {
            return outgoingUnit;
        }

        public void setOutgoingUnit(String outgoingUnit) {
            this.outgoingUnit = outgoingUnit;
        }

        public String getOutgoingQuantity() {
            return outgoingQuantity;
        }

        public void setOutgoingQuantity(String outgoingQuantity) {
            this.outgoingQuantity = outgoingQuantity;
        }
    }


    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public List<DetailsDTO> getDetails() {
        return details;
    }

    public void setDetails(List<DetailsDTO> details) {
        this.details = details;
    }

    public String getPaidAmount() {
        return paidAmount;
    }

    public void setPaidAmount(String paidAmount) {
        this.paidAmount = paidAmount;
    }

    public String getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(String discountAmount) {
        this.discountAmount = discountAmount;
    }


}
